package org.kernely.core.service;

import org.osgi.framework.Bundle;

public interface BundlePresentService {
	/**
	 * Check if a bundle has already been  installed
	 * @param bundle : bundle needed
	 * @return true if the bundle is already present, false else
	 */
	public boolean checkBundle(Bundle bundle);
	
	/**
	 * Add a bundle to the registered bundles list
	 * @param bundle : bundle to register
	 */
	public void addRegisteredBundle(Bundle bundle);
	
	/**
	 * Remove a registered bundle
	 * @param bundle : bundle to remove
	 */
	public void removeRegisteredBundle(Bundle bundle);
	
	/**
	 * Get the version of the Bundle bundle.
	 * @param bundle : Bundle that we need its version
	 * @return : bundle's version
	 */
	public String getBundleVersion(Bundle bundle);
}
